home *** CD-ROM | disk | FTP | other *** search
/ Columbia Kermit / kermit.zip / newsgroups / misc.19950726-19950929 / 000240_news@columbia.edu_Mon Aug 28 18:38:46 1995.msg < prev    next >
Internet Message Format  |  2020-01-01  |  3KB

  1. Received: from apakabar.cc.columbia.edu by watsun.cc.columbia.edu with SMTP id AA09130
  2.   (5.65c+CU/IDA-1.4.4/HLK for <kermit.misc@watsun.cc.columbia.edu>); Mon, 28 Aug 1995 16:51:33 -0400
  3. Received: by apakabar.cc.columbia.edu id AA27215
  4.   (5.65c+CU/IDA-1.4.4/HLK for kermit.misc@watsun); Mon, 28 Aug 1995 16:51:32 -0400
  5. Path: news.columbia.edu!panix!news.mathworks.com!newsfeed.internetmci.com!howland.reston.ans.net!swrinde!news.uh.edu!uuneo.neosoft.com!Starbase.NeoSoft.COM!not-for-mail
  6. From: schenke@Starbase.NeoSoft.COM (Richard Schenke)
  7. Newsgroups: comp.protocols.kermit.misc
  8. Subject: Re: telnet arrow keys and vi
  9. Date: 28 Aug 1995 13:38:46 -0500
  10. Organization: NeoSoft Internet Services   +1 713 968 5800
  11. Lines: 47
  12. Message-Id: <41t2fm$o7i@Starbase.NeoSoft.COM>
  13. References: <41gokc$g6p@ionews.io.org>
  14. Nntp-Posting-Host: starbase.neosoft.com
  15. Apparently-To: kermit.misc@watsun.cc.columbia.edu
  16.  
  17. In article <41gokc$g6p@ionews.io.org>, Kevin W Street <kwstreet@io.org> wrote:
  18. >I'm using the OS/2 version of C-Kermit 5A(191).  I'm having trouble with
  19. >the way that the arrow keys are being interpreted by vi when telneted to
  20. >a UNIX session via a slip link.  I'm using VT220 (VT100 and 102 do the
  21. >same).  If I 'set key \584 \KupArr' then vi is seeing the <esc>OA stream
  22. >as <esc> - go to command mode
  23. >    O - open a line
  24. >    A - insert the letter A
  25. >
  26. I had the same problem with true dumb terminals, not emulations.
  27. I don't remember the details, but we found several workarounds:
  28. 1) try to use h, j, k and l for cursor movement instead of the
  29.   arrow keys,
  30. 2) See if the Unix administrator can provide for a time delay after
  31. receiving ESC.  I don't remember if this was a system-level setting or
  32. a user option for vi.  It causes the host to wait for more
  33. incoming characters before acting on an escape.
  34. 3) change your terminal emulation setting to send ESC [ A instead
  35. of ESC O A.  Better yet, use 8-bit control if you can, so the
  36. emulation will send #8F=SS3 instead of ESC O, and #9B=CSI instead
  37. of ESC [.
  38.  
  39. >If I do 'set key \584 \{27}OA' I get the same thing.  
  40. >
  41. >However if I do:
  42. >    define UpArrNew out \{27}OA, connect
  43. >    set key \584 \KUpArrNew
  44. >then vi works correctly but the screen flashes back to kermit command mode
  45. >momentarily.
  46. >
  47. >I take it that there is a delay between characters with \KupArr that I'm avoiding
  48. >with the macro.  Any suggestions how to get the normal terminal emulation
  49. >to work properly?   (or how to make the sceen not flash if I have to use the 
  50. >macro).
  51.  
  52.   No matter how fast Kermit sends the characters, if you go through
  53. protocol translations on the way to your host, the ESC may get
  54. split into a different block from the rest of the command, and the
  55. arrival times may exceed the host's delay time.  If you set the delay
  56. time really long, it will take a long time for the 'naked' ESC for ending
  57. input mode to be acted on.  You may include your edit keystrokes as text.
  58.  
  59. (We were first using Televideo 955 terminals, and the arrow keys sent
  60. control characters.  Then we got Beehive vt100 clones and started seeing
  61. this problem.  Our resident Unix guru worked the details.)
  62. ===
  63. Richard Schenke